package com.tzbank.wisdom.utils;

/**
 * 错误编码类
 */
public enum BusinessCodeUtil {
	
	//20000为AI的
	CODE_20001("语音解析错误","20001",""),
	CODE_20002("找不到对应的动作","20002",""),
	CODE_20003("语义格式化错误","20003",""),
	CODE_20004("语义分析出错","20004",""),
	
	//30000为teller的 
	CODE_30001("tele接口错误","30001",""),

	//40000为ESB的
	CODE_40001("ESB返回报文解析出错","40001",""),
	
	//其他异常
	CODE_00001("其他错误","00001","");
	
    private String name;

    private String code;
    
    private String esbCode;

    private BusinessCodeUtil(String name, String code,String esbCode){
        this.name = name;
        this.code = code;
        this.esbCode = esbCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

	public String getEsbCode() {
		return esbCode;
	}

	public void setEsbCode(String esbCode) {
		this.esbCode = esbCode;
	}
}
